<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SHOP 管理中心 - 品牌管理 </title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/admin/styles/general.css" rel="stylesheet" type="text/css" />
<link href="/admin/styles/main.css" rel="stylesheet" type="text/css" />
</head>
<style type="text/css">
        #pull_right{
            text-align:center;
        }
        .pagination {
            display: inline-block;
            padding-left: 0;
            margin: 20px 0;
            border-radius: 4px;
        }
        .pagination > li {
            display: inline;
        }
        .pagination > li > a,
        .pagination > li > span {
            position: relative;
            float: left;
            padding: 6px 12px;
            margin-left: -1px;
            line-height: 1.42857143;
            color: #428bca;
            text-decoration: none;
            background-color: #fff;
            border: 1px solid #ddd;
        }

        .pagination > .active > a,
        .pagination > .active > span,
        .pagination > .active > a:hover,
        .pagination > .active > span:hover,
        .pagination > .active > a:focus,
        .pagination > .active > span:focus {
            z-index: 2;
            color: #fff;
            cursor: default;
            background-color: #428bca;
            border-color: #428bca;
        }

</style>

<body>

<h1>
<span class="action-span"><a href="brand_add">添加品牌</a></span>
<span class="action-span1">SHOP 管理中心 </span><span id="search_id" class="action-span1"> - 商品品牌 </span>
<div style="clear:both"></div>
</h1>

<div class="form-div">
  <form action="brand_list" name="searchForm" method="get">
    <img src="/admin/images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH">
     <input type="text" name="brand_name" size="15">
    <input type="submit" value=" 搜索 " class="button">
  </form>
</div>

<form method="post" action="" name="listForm">
<!-- start brand list -->
<div class="list-div" id="listDiv">

  <table cellpadding="3" cellspacing="1">
    <tbody>
        <tr>
            <th>品牌名称</th>
            <th>品牌网址</th>
            <th>品牌简介</th>
            <th>排序</th>
            <th>是否前台显示</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
        <?php foreach($info as $v): ?>
        
      <tr>
            <td class="first-cell"><span style="float:right"><a href="<?php echo e($v->brand_logo); ?>" target="_brank"><img src="<?php echo e($v->brand_logo); ?>" width="16" height="16" border="0" alt="品牌LOGO"></a></span>
            <span onclick="javascript:listTable.edit(this, 'edit_brand_name', 1)" title="点击修改内容" style=""> <?php echo e($v->brand_name); ?></span>
            </td>
            <td><a href="<?php echo e($v->brand_url); ?>" target="_brank"><?php echo e($v->brand_url); ?></a></td>
            <td align="left" ><?php echo e($v->brand_info); ?></td>
            <td align="right"><span onclick="javascript:listTable.edit(this, 'edit_sort_order', 1)"><?php echo e($v->brand_sort); ?></span></td>
            <td align="center">
            <?php if($v->is_show == 1): ?>
                <img src="/admin/images/yes.gif" onclick="listTable.toggle(this, 'toggle_show', 1)">
            <?php else: ?>
                <img src="/admin/images/no.gif" onclick="listTable.toggle(this, 'toggle_show', 1)">

            <?php endif; ?>
            </td>
            <td align="center">
                <?php if($v->status == 1): ?>
                    删除
                <?php else: ?>
                    正常
                <?php endif; ?>
            </td>
            <td align="center">
                <a href="brand_edit/<?php echo e($v->brand_id); ?>" title="编辑">编辑</a> |
                <a href="brand_del/<?php echo e($v->brand_id); ?>" title="删除">移除</a> |
                <a href="brand_back/<?php echo e($v->brand_id); ?>" title="还原">还原状态</a>
            </td>
        </tr>
        <?php endforeach; ?>

  </tbody></table>
  <div id="pull_right">
        <div class="pull-right">
            <?php echo $info->appends(array('brand_name'=>$brand_name))->render(); ?>

        </div>
     </div>
<!-- end brand list -->
</div>
</form>

</body>
</html>